using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class findenemy : MonoBehaviour
{
    public GameObject enemy;
    // Start is called before the first frame update
    void Start()
    {
        
    }
    public void OnTriggerStay2D(Collider2D other)
    {
        if (other.gameObject.CompareTag("Enemy"))
        {
            enemy = other.gameObject;
        }
    }
    // Update is called once per frame
    void Update()
    {
        
    }
}
